<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <!-- Bootstrap -->
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css" />
    <link rel="stylesheet" href="__PUBLIC__/css/bootstrap-theme.min.css" />

    <script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/bootstrap.min.js"></script>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/js/DataTables-1.10.9/media/css/jquery.dataTables.css">
    <script type="text/javascript" language="javascript" src="__PUBLIC__/js/DataTables-1.10.9/media/js/jquery.dataTables.min.js"></script>


    <title>位置</title>
    <script type="text/javascript" language="javascript" class="init">

        $(document).ready(function() {
            $('#locationTb').DataTable( {
                "processing": true,
                "serverSide": true,
                "ajax": "__MODULE__/Location/page",
                "bFilter": false,
                "bSort": false,
                "bLengthChange": false,
                "iDisplayLength": 50,
                "fnServerParams": function(aoData) {
                    delete aoData.search;
                    delete aoData.columns;
                    aoData.pageNum = aoData.start == 0 ? 1 : aoData.start / aoData.length;
                },
                "columns": [
                    { "data": "id" },
                    { "data": "userid" },
                    { "data": "latitude" },
                    { "data": "lontitude" },
                    { "data": "radius" },
                    { "data": "addr" },
                    { "data": "locationdescribe" },
                    { "data": "poilist" },
                    { "data": "createtime" }
                ]
            } );
        } );

        function getDate(tm){
            var tt=new Date(parseInt(tm) * 1000).toLocaleString().replace(/年|月/g, "-").replace(/日/g, " ")
            return tt;
        }
    </script>
</head>
<body>

    <table id="locationTb" class="table table-bordered">
        <thead>
            <tr>
                <th>id</th>
                <th>userid</th>
                <th>latitude</th>
                <th>lontitude</th>
                <th>radius</th>
                <th>addr</th>
                <th>locationdescribe</th>
                <th>poilist</th>
                <th>createtime</th>
            </tr>
        </thead>
    </table>
	
</body>
</html>